package edu.fmi.st.epf.types.team.ui.extension;

import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.epf.library.edit.ILibraryItemProvider;
import org.eclipse.epf.uma.ContentPackage;

import edu.fmi.st.epf.types.team.common.util.TeamHelper;
import edu.fmi.st.epf.types.team.ui.provider.TeamsCategoryItemProvider;
import eu.tanov.epf.itemprovider.extension.AbstractExtendedItemProvider;
import eu.tanov.epf.itemprovider.extension.ExtendedItemProvider;

public class TeamExtendedItemProvider extends AbstractExtendedItemProvider
		implements ExtendedItemProvider {

	public TeamExtendedItemProvider() {
		super(TeamHelper.TEAMS_PATH);
	}

	@Override
	public int position() {
		return 120;
	}

	@Override
	protected ILibraryItemProvider createProvider(
			AdapterFactory adapterFactory, ContentPackage contentPkg,
			String name) {
		return new TeamsCategoryItemProvider(adapterFactory, contentPkg, name);
	}

	@Override
	protected String getCategoryLocalizedName() {
		return "Teams";
	}

}
